﻿<%@ Page Title="" Language="C#" MasterPageFile="~/ACPanel/AdminPage.master" AutoEventWireup="true" CodeFile="QLCountry.aspx.cs" Inherits="ACPanel_NodeDiaDiem_QLCountry" %>

<asp:Content ID="Content1" ContentPlaceHolderID="head" Runat="Server">
    <title>Quản lý Country</title>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server">
    <asp:UpdatePanel ID="UpdatePanel1" runat="server" UpdateMode="Conditional" RenderMode="Block">
        <ContentTemplate>
            <!-- Add / Update Category -->
            <div class="row">
                <div class="col-lg-12">
                    <h1>
                        Quản lý Country</h1>
                    <ol class="breadcrumb">
                        <li><i class="fa fa-dashboard"></i> Bảng điều khiển</li>
                        <li class="active"><i class="fa fa-table"></i> Quản lý Country</li>
                    </ol>
                </div>
                <div class="col-lg-12">
                    <p>
                        <asp:HyperLink ID="HyperLink1" runat="server" CssClass="btn btn-success" NavigateUrl="~/ACPanel/NodeDiaDiem/AddEditCountry.aspx"><i class="fa fa-plus"></i> Thêm mới Country</asp:HyperLink>
                    </p>
                    <div class="panel panel-primary">
                        <div class="panel-heading">
                            <h3 class="panel-title">
                                <i class="fa fa-table"></i> Danh sách các Country</h3>
                        </div>
                        <div class="panel-body">
                            <asp:GridView CssClass="table table-bordered" ID="gv" DataKeyNames="Id" runat="server"
                                CellPadding="4" ForeColor="#333333" GridLines="None" PageSize="10" AllowPaging="true"
                                PagerSettings-Position="TopAndBottom" OnPageIndexChanging="gv_PageIndexChanging"
                                PagerSettings-PageButtonCount="5" AllowSorting="true"
                                EmptyDataText="Chưa cập nhật dữ liệu" AutoGenerateEditButton="False" AutoGenerateColumns="False">
                                <Columns>
                                    <asp:TemplateField HeaderText="Edit / Delete">
                                        <ItemTemplate>
                                            <asp:HyperLink ID="HyperLink1" ToolTip="Chỉnh sửa" runat="server" NavigateUrl='<%# "~/ACPanel/NodeDiaDiem/AddEditCountry.aspx?" + "Id=" + Eval("Id") %>'><i class="fa fa-edit"></i></asp:HyperLink>
                                            /
                                            <asp:HyperLink ID="HyperLink2" ToolTip="Xóa" runat="server" NavigateUrl='<%# "~/ACPanel/NodeDiaDiem/DeleteCountry.aspx?" + "Id=" + Eval("Id") %>'><i class="fa fa-eraser"></i></asp:HyperLink>
                                        </ItemTemplate>
                                    </asp:TemplateField>
                                </Columns>
                                <Columns>                                    
                                    <asp:BoundField DataField="Ten" HeaderText="Quốc gia" />
                                    <asp:BoundField DataField="ThuDo" HeaderText="Thủ đô" />
                                    <asp:BoundField DataField="TungDo" HeaderText="TungDo" />
                                    <asp:BoundField DataField="ViDo" HeaderText="ViDo" />
                                    <asp:BoundField DataField="NgayCapNhat" HeaderText="NgayCapNhat" />
                                    <asp:CheckBoxField DataField="TrangThai" HeaderText="TrangThai" />
                                </Columns>
                                <AlternatingRowStyle BackColor="White" />
                                <FooterStyle BackColor="#d02027" Font-Bold="True" ForeColor="Black" />
                                <HeaderStyle BackColor="White" Font-Bold="True" ForeColor="Black" />
                                <PagerStyle CssClass="phan-trang" BackColor="#428bca" ForeColor="#ffffff" HorizontalAlign="Center" />
                                <RowStyle BackColor="#FFFBD6" ForeColor="#333333" VerticalAlign="Middle" Wrap="True" />
                                <SelectedRowStyle BackColor="#FFCC66" Font-Bold="True" ForeColor="Navy" />
                                <PagerSettings Mode="NextPreviousFirstLast"></PagerSettings>
                            </asp:GridView>
                        </div>
                    </div>
                </div>
            </div>
            <!-- end Add / Update Loai phuong tien -->
        </ContentTemplate>
    </asp:UpdatePanel>
</asp:Content>

